#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	
	
	int c = 1;
	
	int num = 0;
	scanf("%d", &num);
	int b = num-3;
	int a = num / 2;
	int d = num - 2;
	for (int i = 0; i < num/2; i++)
	{
		for (int k = 0; k < a; k++)
		{
			printf(" ");
		}
		a--;
		for (int j = num-2; j > b;j--)
		{
			printf("*");	
		}
		b--;
		b--;
		printf("\n");
	}
	
	for (int i = 0; i < num; i++)
	{
		printf("*");
	}
	printf("\n");
	for (int i = 0; i < num/2; i++)
	{
		for (int j = 0; j < c; j++)
		{
			printf(" ");
		}
		c++;
		for (int k = d; k > 0; k--)
		{
			printf("*");
		}
		d--;
		d--;
		printf("\n");
	}

	return 0;
}